promise.then(value => window.postMessage(value));